import {ToastAndroid, Platform} from 'react-native';
import Toast from 'react-native-root-toast';
  
export function toast(message){
    if(Platform.OS === 'android'){
        return ToastAndroid.showWithGravity(message, ToastAndroid.SHORT, ToastAndroid.CENTER)
    }else{
        Toast.show(message, { position: Toast.positions.CENTER })
    }
}